// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

Vue.config.productionTip = false;

//折线图
import echarts from 'echarts'
//需要挂载到Vue原型上
Vue.prototype.$echarts = echarts

import mavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";
Vue.use(mavonEditor);

// 时间格式化全局过滤器
import moment from "moment";
// 中文简体
moment.locale("zh-cn");
Vue.prototype.$moment = moment;

Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  echarts,
  components: { App },
  template: '<App/>'
})
